package cate.game.train.rune.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBTrain;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "徽章上锁的返回")
public class RuneLockResp implements MsgOutput {
    @NoteField(value = "上锁 true /解锁 false")
    public boolean lock;

    @NoteField(value = "徽章uid")
    public String uid;

    @NoteField(value = "英雄uid", detail = "如果穿戴在英雄身上的话")
    public String heroUid;

    @NoteField(value = "穿戴位置")
    public byte pos;

    public RuneLockResp(){

    }

    public RuneLockResp(String uid, String heroUid, byte pos, boolean lock){
        this.uid = uid;
        this.heroUid = heroUid;
        this.pos = pos;
        this.lock = lock;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.RUNE_LOCK_RESP;
    }
}
